Optimal. Leaf size=119 \[ \frac{b e^{a+b x} \sin (c+d x)}{4 \left (b^2+d^2\right )}+\frac{b e^{a+b x} \sin (3 c+3 d x)}{4 \left (b^2+9 d^2\right )}-\frac{d e^{a+b x} \cos (c+d x)}{4 \left (b^2+d^2\right )}-\frac{3 d e^{a+b x} \cos (3 c+3 d x)}{4 \left (b^2+9 d^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0825251, antiderivative size = 119, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 2, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.091, Rules used = {4469, 4432} \[ \frac{b e^{a+b x} \sin (c+d x)}{4 \left (b^2+d^2\right )}+\frac{b e^{a+b x} \sin (3 c+3 d x)}{4 \left (b^2+9 d^2\right )}-\frac{d e^{a+b x} \cos (c+d x)}{4 \left (b^2+d^2\right )}-\frac{3 d e^{a+b x} \cos (3 c+3 d x)}{4 \left (b^2+9 d^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4469
Rule 4432
Rubi steps
\begin{align*} \int e^{a+b x} \cos ^2(c+d x) \sin (c+d x) \, dx &=\int \left (\frac{1}{4} e^{a+b x} \sin (c+d x)+\frac{1}{4} e^{a+b x} \sin (3 c+3 d x)\right ) \, dx\\ &=\frac{1}{4} \int e^{a+b x} \sin (c+d x) \, dx+\frac{1}{4} \int e^{a+b x} \sin (3 c+3 d x) \, dx\\ &=-\frac{d e^{a+b x} \cos (c+d x)}{4 \left (b^2+d^2\right )}-\frac{3 d e^{a+b x} \cos (3 c+3 d x)}{4 \left (b^2+9 d^2\right )}+\frac{b e^{a+b x} \sin (c+d x)}{4 \left (b^2+d^2\right )}+\frac{b e^{a+b x} \sin (3 c+3 d x)}{4 \left (b^2+9 d^2\right )}\\ \end{align*}
Mathematica [A] time = 0.664618, size = 74, normalized size = 0.62 \[ \frac{1}{4} e^{a+b x} \left (\frac{b \sin (c+d x)-d \cos (c+d x)}{b^2+d^2}+\frac{b \sin (3 (c+d x))-3 d \cos (3 (c+d x))}{b^2+9 d^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.016, size = 108, normalized size = 0.9 \begin{align*} -{\frac{d{{\rm e}^{bx+a}}\cos \left ( dx+c \right ) }{4\,{b}^{2}+4\,{d}^{2}}}-{\frac{3\,d{{\rm e}^{bx+a}}\cos \left ( 3\,dx+3\,c \right ) }{4\,{b}^{2}+36\,{d}^{2}}}+{\frac{b{{\rm e}^{bx+a}}\sin \left ( dx+c \right ) }{4\,{b}^{2}+4\,{d}^{2}}}+{\frac{b{{\rm e}^{bx+a}}\sin \left ( 3\,dx+3\,c \right ) }{4\,{b}^{2}+36\,{d}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.19727, size = 726, normalized size = 6.1 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.486486, size = 224, normalized size = 1.88 \begin{align*} \frac{{\left (2 \, b d^{2} +{\left (b^{3} + b d^{2}\right )} \cos \left (d x + c\right )^{2}\right )} e^{\left (b x + a\right )} \sin \left (d x + c\right ) +{\left (2 \, b^{2} d \cos \left (d x + c\right ) - 3 \,{\left (b^{2} d + d^{3}\right )} \cos \left (d x + c\right )^{3}\right )} e^{\left (b x + a\right )}}{b^{4} + 10 \, b^{2} d^{2} + 9 \, d^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15325, size = 135, normalized size = 1.13 \begin{align*} -\frac{1}{4} \,{\left (\frac{3 \, d \cos \left (3 \, d x + 3 \, c\right )}{b^{2} + 9 \, d^{2}} - \frac{b \sin \left (3 \, d x + 3 \, c\right )}{b^{2} + 9 \, d^{2}}\right )} e^{\left (b x + a\right )} - \frac{1}{4} \,{\left (\frac{d \cos \left (d x + c\right )}{b^{2} + d^{2}} - \frac{b \sin \left (d x + c\right )}{b^{2} + d^{2}}\right )} e^{\left (b x + a\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]